﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once

#include "GcmpGUiBaseInterface.h"
#include "IEvent.h"

namespace gcmp
{
    class ILineEditEventHandler;
    class ILineEditDefinition;
    ///  \brief  LineEdit事件
    class GCMP_GUI_BASE_INTERFACE_EXPORT ILineEditEvent : public IEvent
    {
    public:
        ///  \brief  添加LineEdit事件处理者
        ///
        /// \param pHandler  LineEdit事件处理者
        /// \return  添加成功返回true，否则返回false
        virtual bool Add(ILineEditEventHandler* pHandler) = 0;

        ///  \brief  删除LineEdit事件处理者
        ///
        /// \param pHandler  LineEdit事件处理者
        /// \return  删除成功返回true，否则返回false
        virtual bool Delete(ILineEditEventHandler* pHandler) = 0;

        ///  \brief  获取LineEdit事件发送者
        ///
        /// \return 
        virtual ILineEditDefinition* GetSender() const = 0;
    };
}

